/*


 */

package jas.rpc.client;

import jas.rpc.*;

/**
 * Produces client-side stubs for remote objects.
 * 
 * @see RemoteStub
 */
public interface StubFactory {
	/**
	 * Gets a stub corresponding to the specified remote object.
	 * @param object identier for the object the stub should make calls to.
	 * @param client the RPC client to use when making calls.
	 * @return a new stub object
	 */
    Object getStub(RemoteObject object, RpcClient client);
}
